package god.dream.comment.dao;

import god.dream.comment.model.Comment;

import java.util.List;

import org.springframework.dao.DataAccessException;

public interface CommentDAO {

	int insert(Comment comment) throws DataAccessException;

	int update(Comment comment) throws DataAccessException;

	int delete(int id) throws DataAccessException;

	Comment findComment(int id) throws DataAccessException;
	
	List<Comment> findCommentList() throws DataAccessException;
	
	List<Comment> findCommentListWithUser(int uid) throws DataAccessException;
}
